Skip to content

fix(cache): replace custom ETag strategy with OkHttp native cache#994

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/simplify-image-cache
Jun 26, 2026
Merged

fix(cache): replace custom ETag strategy with OkHttp native cache#994
bmc08gt merged 1 commit into
code/cashfrom
fix/simplify-image-cache

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Drop ETagCacheStrategy, ETagOfflineFallbackInterceptor, and per-request etagRevalidation() in favor of OkHttp built-in HTTP cache. This gives us max-age freshness, conditional If-None-Match revalidation, and offline stale-serve out of the box. Coil disk cache is disabled so OkHttp is the single disk layer, fixing the icons-flashing-on-launch bug caused by Coil DefaultCacheStrategy bypassing freshness checks.

Drop ETagCacheStrategy, ETagOfflineFallbackInterceptor, and per-request
etagRevalidation() in favor of OkHttp built-in HTTP cache. This gives
us max-age freshness, conditional If-None-Match revalidation, and offline
stale-serve out of the box. Coil disk cache is disabled so OkHttp is
the single disk layer, fixing the icons-flashing-on-launch bug caused by
Coil DefaultCacheStrategy bypassing freshness checks.

Signed-off-by: Brandon McAnsh <[email protected]>
@bmc08gt bmc08gt self-assigned this Jun 26, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Jun 26, 2026
@bmc08gt bmc08gt merged commit 15d5544 into code/cash Jun 26, 2026
3 checks passed
@bmc08gt bmc08gt deleted the fix/simplify-image-cache branch June 26, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant